var status = -1;

function action(e, d, c) {
    if (e === 0) {
        status--
    } else {
        status++
    }
    var b = -1;
    if (status <= b++) {
        cm.dispose()
    } else {
        if (status === b++) {
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, true, true);
            cm.inGameDirectionEvent_PushScaleInfo(1000, 4000, 800, 360, 270)
        } else {
            if (status === b++) {
                cm.inGameDirectionEvent_AskAnswerTime(1500)
            } else {
                if (status === b++) {
                    cm.sendNormalTalk_Bottom("这个……是逃走的蘑菇大臣的通缉传单。还没抓到那？", 57, 1302026, false, true)
                } else {
                    if (status === b++) {
                        cm.inGameDirectionEvent_PushScaleInfo(0, 1000, 2147483647, 2147483647, 2147483647)
                    } else {
                        if (status === b++) {
                            cm.inGameDirectionEvent_PushMoveInfo(1, 0, 0, 0)
                        } else {
                            if (status === b++) {
                                var a = cm.getQuestRecord(30050);
                                a.setCustomData("2");
                                cm.getPlayer().updateQuest(a, true);
                                cm.eventSKill(0);
                                cm.setInGameDirectionMode(false, true, false);
                                cm.dispose()
                            }
                        }
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};